package com.giscloud.upload.service;

import com.giscloud.upload.entity.Attachment;
import com.giscloud.datasource.page.PageInfo;
import com.giscloud.commons.model.Result;
import java.util.List;
import com.giscloud.upload.entity.dto.AttachmentDTO;
/**
 * 附件表
 *
 * @author giscloud
 * @email giscloud@giscloud.com
 * @date 2020-06-10 14:26:31
 */
public interface AttachmentService {
    /**
    *
    * 列表
    */
     PageInfo queryPage(AttachmentDTO attachmentDTO);


    /**
     * 信息
     */
     Attachment getById(Integer attachmentId);

    /**
     *
     * @param key
     * @return
     */
     Attachment getByKey(String key);

    /**
     * 保存
     */
     Result save(Attachment attachment);

    /**
     * 修改
     */
     Result updateById(Attachment attachment);
    /**
     * 删除
     */
     Result removeByIds(List<Integer> attachmentIds);
}

